package cn.classyex.business.hr.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 培训管理对象 hr_train
 * 
 * @author yex
 * @date 2021-05-06
 */
public class Train extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 培训id */
    private Long trainId;

    /** 培训标题 */
    @Excel(name = "培训标题")
    private String title;

    /** 培训内容 */
    @Excel(name = "培训内容")
    private String trainContent;

    /** 培训时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "培训时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date trainTime;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setTrainId(Long trainId) 
    {
        this.trainId = trainId;
    }

    public Long getTrainId() 
    {
        return trainId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setTrainContent(String trainContent) 
    {
        this.trainContent = trainContent;
    }

    public String getTrainContent() 
    {
        return trainContent;
    }
    public void setTrainTime(Date trainTime) 
    {
        this.trainTime = trainTime;
    }

    public Date getTrainTime() 
    {
        return trainTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("trainId", getTrainId())
            .append("title", getTitle())
            .append("trainContent", getTrainContent())
            .append("trainTime", getTrainTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
